package com.dyx.lifecycle;

import java.util.List;

/**
 * @author dengyouxu
 * @description TODO
 * @since 2021-05-10 下午4:25
 */
public interface LifeCycle {

    List<LifeCycleListener> getListeners();

    boolean addListener(LifeCycleListener listener);

    boolean removeListener(LifeCycleListener listener);

    void start();

    void stop();

}
